package com.gs.orderservice.service.impl;

import com.gs.orderservice.entity.SysUser;
import com.gs.orderservice.feign.UserFeign;
import com.gs.orderservice.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @ProjectName: apollomodulestest
 * @Package: com.gs.orderservice.service
 * @Description: java类作用描述
 * @Author: guoshuai
 * @CreateDate: 2019/7/26 20:14
 * @UpdateUser: guoshuai
 * @UpdateDate: 2019/7/26 20:14
 * @UpdateRemark: The modified content
 * @Version: 1.0
 **/
@Service("orderService")
public class OrderServiceImpl implements OrderService {
    @Autowired
    private UserFeign userFeign;

    @Override
   // @LcnTransaction//分布式事务
   // @Transactional//本地事务注解
    public void saveUserInfo(SysUser sysUser) {
        userFeign.saveUser(sysUser);
    }
}
